﻿@model IEnumerable<Mvc.Models.TipoProyecto>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
   @Ajax.ActionLink("Adicionar", "create", "TipoProyecto", new AjaxOptions { UpdateTargetId = "content", InsertionMode = InsertionMode.Replace, HttpMethod = "GET" })

    
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Nombre)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Nombre)
        </td>
        <td>
           
            @Ajax.ActionLink("Editar", "Edit", "TipoProyecto",new { id=item.ID }, new AjaxOptions { UpdateTargetId = "content", InsertionMode = InsertionMode.Replace, HttpMethod = "GET" })|
            @Ajax.ActionLink("Detalle", "Details", "TipoProyecto",new { id=item.ID }, new AjaxOptions { UpdateTargetId = "content", InsertionMode = InsertionMode.Replace, HttpMethod = "GET" })|
            @Ajax.ActionLink("Borrar", "Delete", "TipoProyecto",new { id=item.ID }, new AjaxOptions { UpdateTargetId = "content", InsertionMode = InsertionMode.Replace, HttpMethod = "GET" })|
         
        </td>
    </tr>
}

</table>
